package com.ruoyi.doorcontrol.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 门禁管理对象 th_door_control
 * 
 * @author zhang
 * @date 2024-07-13
 */
public class ThDoorControl extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 门禁 */
    private Long id;

    /** ip地址 */
    @Excel(name = "ip地址")
    private String ipadress;

    /** 登录名 */
    @Excel(name = "登录名")
    private String user;

    /** 登录密码 */
    @Excel(name = "登录密码")
    private String psw;

    /** 端口号 */
    @Excel(name = "端口号")
    private short port;

    /** 备注 */
    @Excel(name = "备注")
    private String notes;

    /** 状态 */
    @Excel(name = "状态")
    private Integer status;

    /** 位置 */
    @Excel(name = "位置")
    private String controlPosition;

    /** 出入门类型 */
    @Excel(name = "出入门类型")
    private String controlType;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setIpadress(String ipadress) 
    {
        this.ipadress = ipadress;
    }

    public String getIpadress() 
    {
        return ipadress;
    }
    public void setUser(String user) 
    {
        this.user = user;
    }

    public String getUser() 
    {
        return user;
    }
    public void setPsw(String psw) 
    {
        this.psw = psw;
    }

    public String getPsw() 
    {
        return psw;
    }

    public short getPort() {
        return port;
    }

    public void setPort(short port) {
        this.port = port;
    }

    public void setNotes(String notes)
    {
        this.notes = notes;
    }

    public String getNotes() 
    {
        return notes;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }
    public void setControlPosition(String controlPosition) 
    {
        this.controlPosition = controlPosition;
    }

    public String getControlPosition() 
    {
        return controlPosition;
    }
    public void setControlType(String controlType) 
    {
        this.controlType = controlType;
    }

    public String getControlType() 
    {
        return controlType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("ipadress", getIpadress())
            .append("user", getUser())
            .append("psw", getPsw())
            .append("port", getPort())
            .append("notes", getNotes())
            .append("status", getStatus())
            .append("controlPosition", getControlPosition())
            .append("controlType", getControlType())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .toString();
    }
}
